package com.ls.controller.frontend;

import com.ls.entity.dto.MainPageInfoDTO;
import com.ls.entity.dto.Result;
import com.ls.service.combine.HeadLineShopCategoryService;
import lombok.Getter;
import org.simpleframework.core.annotation.Controller;
import org.simpleframework.inject.annotation.Autowired;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @program: simpleframework
 * @description:
 * @author: lishuang
 * @create: 2021-11-22 10:24
 **/
@Controller
@Getter
public class MainPageController {
    @Autowired
    private HeadLineShopCategoryService headLineShopCategoryService;

    public Result<MainPageInfoDTO> getMainPageInfo(HttpServletRequest req, HttpServletResponse resp)  throws ServletException, IOException{
        return headLineShopCategoryService.getPageInfo();
    }
}
